package com.object;

public class GoToDirectionController extends Controller {

    private HeroPosition position;

    public GoToDirectionController(HeroSprite sprite, HeroPosition position) {
        super(sprite);
        this.position = position;
    }

    @Override
    public void control() {
        sprite.setPosicaoAtual(position);
        sprite.setMoving(true);
    }

}
